# -*- coding: utf-8 -*-

from django.db import models
from core.models import CoreModel, table_prefix


class WhiteList(CoreModel):
    url = models.CharField(max_length=200, verbose_name="请求地址")
    method = models.CharField(default="GET", verbose_name="接口方法")

    class Meta:
        db_table = table_prefix + "system_whitelist"
        verbose_name = "接口白名单"
        verbose_name_plural = verbose_name
        ordering = ("-create_time",)
